// 通用接口
export interface IMovie {
  id?: string
  name: string
  types: string[]
  areas: string[]
  timeLong: number
  isHot: boolean
  isComing: boolean
  isClassic: boolean
  description?: string
  poster?: string
}

export interface ISearchResult<T> {
  data: T
  curPage: number
  pages: number
  count: number
}

export interface IResult<T> {
  data:{
    code: number
    data: T | null
    success: boolean
    message: string
  }
}

export interface ICondition {
  page?: number
  limit?: number
  keyWord?: string
}

export interface IAction<T extends string,P> {
  type:T,
  payload:P
}